package com.group56.utils;

/**
 * fxml路径的配置类，控制器中访问必须通过本类访问。修改/更新fxml时直接修改本配置类里的路径，实现布丁式更新
 */
public class FXMLSrcMenu {
    /**用户端*/
    public enum UserEnd{
        APP_FRAMEWORK("/AppFrameWork.fxml"),
        NAVIGATOR("/Navigator.fxml"),
        HOME_PAGE("/Home.fxml"),
        //video模块
        VIDEO_LIST("/VideoList.fxml"),
        VIDEO_DETAIL("/VideoDetail.fxml"),
        PURCHASE("/purchase.fxml"),
        //log&register
        LOG_IN("/Login.fxml"),
        REGISTER("/RegisterPage.fxml"),
        //user info模块
        FOOTER("/footer.fxml"),
        USER_INFO("/UserInfo.fxml"),
        USER_INFO_MODIFY("/UserInfoModify.fxml"),
        USER_ADS("/Advertisement.fxml"),
        USER_FRAMEWORK("/UserModuleFrameWork.fxml"),
        //book模块（选教练预约一对一直播）
        COACH_LIST("/CoachList.fxml"),
        COACH_DETAIL("/Coach.fxml"),
        //schedule模块（查看自己的预约的直播时间表）
        SCHEDULE_LIST("/ScheduleList.fxml"),
        ;

        private final String src;

        UserEnd(String src) {
            this.src = src;
        }
        public String getSrc() {
            return "/user" + src;
        }
    }

    public enum CoachEnd{
        APP_FRAMEWORK("/CoachAppFrameWork.fxml"),
        NAVIGATOR("/Navigator.fxml"),
        SCHEDULE("/CoachSchedule.fxml"),
        COACH_INFO("/CoachInfo.fxml"),
        ;
        private final String src;

        CoachEnd(String src) {
            this.src = src;
        }
        public String getSrc() {
            return "/coach" + src;
        }
    }


}
